<?php $rand = rand();?>
var chart<?php echo $rand?> = new FusionCharts("<?php echo $base_url?>flash/charts/Pie3D.swf", "ChartId", "<?php echo $height?>", "<?php echo $width?>", "0", "0");chart<?php echo $rand?>.setDataXML("<chart caption='All Uploads >> Files vs Images' showPercentageValues='0'><set label='Regular' value='<?php echo $this->db->get_where('refrence', array('is_image' => false))->num_rows()?>' /><set label='Image' value='<?php echo $this->db->get_where('refrence', array('is_image' => true))->num_rows()?>' /></chart>");chart<?php echo $rand?>.render("chart_data");